package com.haizhi.crm.biz.model;

import com.haizhi.crm.biz.constant.MessageStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * Created by wangshan on 2018/5/16.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MessageVo extends MessageDo {

    private String messageType;

    private String parentType;

    private MessageStatus messageStatus;

    private List<MessageClientDo> clients;

    public List<MessageClientDo> getClients() {
        return clients;
    }

    public void setClients(List<MessageClientDo> clients) {
        this.clients = clients;
    }

    public MessageVo(String title) {
        this.setMsgTitle(title);
    }

    public MessageVo(String title, Long categoryId, String msgKey, Date createDt, Long id, String messageType, MessageStatus messageStatus) {
        this.setId(id);
        this.setMsgTitle(title);
        this.setMsgCategoryId(categoryId);
        this.setMsgKey(msgKey);
        this.setCreatedDt(createDt);
        this.messageType = messageType;
        this.messageStatus = messageStatus;
    }
}
